import { getCateListAPI } from '@/api'
export default {
  namespaced: true,
  state: {
    cateList: []
  },
  getters: {},
  mutations: {
    setCateList(state, cateList) {
      state.cateList = cateList
    }
  },
  actions: {
    async getCateListActions({ commit }) {
      const res = await getCateListAPI()
      // console.log(res)
      commit('setCateList', res.result)
    }
  }
}
